﻿using System;

namespace Solution.Application.Modules
{
    public class RabbitMQOption
    {
        /// <summary>
        ///
        /// </summary>
        public string HostName { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string VirtualHost { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 每次预取条数
        /// </summary>
        public byte Qos { get; set; } = 10;

        /// <summary>
        /// 重试次数
        /// </summary>
        public int RetryOnFailure { get; set; } = 5;

        public int Port { get; set; } = 5672;
    }
}